package com.bgs.controller;
import com.bgs.fegin.PictureFegin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@RestController
@RequestMapping("/bgs/picture")
public class PictureController {
    @Autowired
    private PictureFegin pictureFegin;
    @PostMapping("/handelPic")
    public String handelPic(@RequestPart("file") MultipartFile file) {
        return pictureFegin.handelPic(file);
    }
}
